-
Notifications
You must be signed in to change notification settings - Fork 400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DASH-638] Improve page load speed for <project>/connect tab by skipping a redirect #5758
[DASH-638] Improve page load speed for <project>/connect tab by skipping a redirect #5758
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5758 +/- ##
=======================================
Coverage 52.99% 52.99%
=======================================
Files 1102 1102
Lines 59107 59107
Branches 4809 4809
=======================================
Hits 31323 31323
Misses 27066 27066
Partials 718 718
*This pull request uses carry forward flags. Click here to find out more. |
size-limit report 📦
|
path: `${layoutPath}/connect/in-app-wallets`, | ||
name: "Connect", | ||
isActive: (path) => path.startsWith(`${layoutPath}/connect`), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
means we have to keep this in mind if we ever want to prioritize another sub-tab
Merge activity
|
…ing a redirect (#5758) ## Problem solved DASH-638 <!-- start pr-codex --> --- ## PR-Codex overview This PR introduces a new `ProjectTabs` component to replace the existing `TabPathLinks` usage in the `TeamLayout`. It enhances tab management by allowing custom active tab logic and streamlining the tab structure. ### Detailed summary - Added `isActive` prop to the `links` array in `tabs.tsx`. - Introduced `ProjectTabs` component in `tabs.tsx` for managing project-related tabs. - Replaced `TabPathLinks` with `ProjectTabs` in `layout.tsx`. - Removed unused code for project fetching and not found handling in `page.tsx`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
f86a86d
to
b6deb15
Compare
Problem solved
DASH-638
PR-Codex overview
This PR introduces a new
ProjectTabs
component, enhancing tab navigation within the project layout. It replaces the existingTabPathLinks
implementation, allowing for more dynamic tab activation based on the current path.Detailed summary
isActive
prop tolinks
intabs.tsx
.TabPathLinks
usage with a newProjectTabs
component.TabPathLinks
implementation inlayout.tsx
.ProjectTabs
.